package cn.com.zcode.auth.dao;

import java.util.List;

import cn.com.zcode.auth.model.UserRole;
import cn.com.zcode.core.dao.BaseHibernateDaoSupport;

public class AuthDaoImpl extends BaseHibernateDaoSupport implements AuthDao {

	@Override
	public List<UserRole> findRoles(String id) {
		String hql = "select r from UserRole as r inner join  r.users as u where u.id = ?";
		return this.findByHQL(hql, UserRole.class, id);
	}


}
